package com.example.lovedogs.mycenter;

import com.example.lovedogs.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;

public class UserInfoActivity extends Activity implements OnClickListener{
	private ImageView iv_back ;
	private LinearLayout layout_picture ;
	private LinearLayout layout_name ;
	private LinearLayout layout_sex ;
	private LinearLayout layout_address ;
	private LinearLayout layout_other ;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_user_info);
		init() ;
	}
	private void init() {
		iv_back = (ImageView) findViewById(R.id.iv_back);
		iv_back.setOnClickListener(this);
		layout_picture = (LinearLayout) findViewById(R.id.layout_picture);
		layout_picture.setOnClickListener(this);
		layout_name = (LinearLayout) findViewById(R.id.layout_name);
		layout_name.setOnClickListener(this);
		layout_sex = (LinearLayout) findViewById(R.id.layout_sex);
		layout_sex.setOnClickListener(this);
		layout_address = (LinearLayout) findViewById(R.id.layout_address);
		layout_address.setOnClickListener(this);
		layout_other = (LinearLayout) findViewById(R.id.layout_other);
		layout_other.setOnClickListener(this);
		
	}
	@Override
	public void onClick(View v) {
		if(iv_back == v){
			this.finish();
		}else if(layout_picture == v){
			//修改头像
		}else if(layout_name == v){
			//修改昵称
		}else if(layout_sex == v){
			//修改性别
		}else if(layout_address == v){
			//修改地区
		}else if(layout_other == v){
			//修改其他
		}
	}

	
}
